export default {
  name: "MyRouterView",
  functional: true,
  render: (createElement, { props, children, parent, data }) => {
    console.log(props, children, data);
    let temp =
      parent.$myRoute && parent.$myRoute.component
        ? parent.$myRoute.component.default
        : "";
    // console.log(parent.$myRoute)
    return createElement(temp);
  },
};

// Vue.component("MyRouterView",{
//     render(h){

//         let currentRoute = this._self._myRouter.current
//         let routesMap = this._self._myRouter.routesMap
//         return h(routesMap[currentRoute])
//     }
// })
